package com.dodayum;

import com.dodayum.service.IProtocol;

import java.util.Iterator;
import java.util.ServiceLoader;

/**
 * @author BaiYu
 * @date 2023/7/1814:24
 */
public class Main {


    public static void main(String[] args) {

        ServiceLoader<IProtocol> load = ServiceLoader.load(IProtocol.class);
        for (IProtocol iProtocol : load) {
            iProtocol.sendRequest("123");
        }

    }


}
